import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd

data = {'A': [1, 2, 3, 4, 5], 'B': [5, 4, 3, 2, 1]}
df = pd.DataFrame(data)

tips = ["Product A", "Product B", "Product C", "Product D"]
tips2 = [120, 210, 150, 180]

df2 = pd.DataFrame(tips)
df3 = pd.DataFrame(tips2)

# 创建一个图形和子图的网格
fig, ax = plt.subplots(2, 2, figsize=(14, 6))

# 设置主题和颜色调色板
sns.set_theme(style="darkgrid", palette="pastel")

# 在第一个子图上绘制
sns.barplot(x="A", y="B", data=df, ax=ax[0, 1])
ax[0,1].set_title("Total Bill by Day of the Week")

# 在第二个子图上绘制
sns.barplot(x="A", y="B", data=df, ax=ax[1, 0])

plt.show()




